﻿using Senparc.Weixin.MP.TenPayLibV3;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZBJF.Warranty.WeiXinPayAPI
{
    /// <summary>
    /// 支付实体类
    /// </summary>
    public class PayParamsModel
    {
        public PayParamsModel(string AppID, string Package)
        {
            this.AppID = AppID;
            this.Package = "prepay_id=" + Package;
        }
        /// <summary>
        /// 公众号id：商户注册具有支付权限的公众号成功后即可获得
        /// </summary>
        public string AppID { get; set; }
        /// <summary>
        /// 时间戳：当前的时间的时间戳
        /// </summary>
        public string TimeStamp
        {
            get;set;
        }
        /// <summary>
        /// 随机字符串：不长于32位
        /// </summary>
        public string NonceStr
        {
            get;set;
        }
        /// <summary>
        /// 订单详情扩展字符串 ：统一下单接口返回的prepay_id参数值，提交格式如：prepay_id=***
        /// </summary>
        public string Package { get; set; }
        public string SignType
        {
            get
            {
                return "MD5";
            }
        }
        /// <summary>
        /// 签名
        /// </summary>
        public string PaySign
        {
            get; set;
        }

    }
}
